#include "mybar.h"
#include "ui_mybar.h"

mybar::mybar(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::mybar)
{
    ui->setupUi(this);
    ui->m_bar->setRange(0, 100);
    ui->m_bar->setValue(0);
}

mybar::~mybar()
{
    delete ui;
}

void mybar::setPath(QString path)
{
    ui->m_path->setText(path);
}

void mybar::setBarValue(int value)
{
    ui->m_bar->setValue(value);
}
